<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增房间')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tRoominfo-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">房间号：</label>
				<div class="col-sm-8">
					<input id="fjh" name="fjh" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">基础费用：</label>
				<div class="col-sm-8">
					<input id="jcff" name="jcff" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">房间启用状态：</label>
				<div class="col-sm-9">
				    <label class="radio-box">
				            <input type="radio" checked="" value="启用" id="fjqyzt1" name="fjqyzt" style="position: absolute; opacity: 0;" >启用
				    </label>
				    <label class="radio-box">
				          <input type="radio" value="停用" id="fjqyzt2" name="fjqyzt" style="position: absolute; opacity: 0;">
				        	 停用
				    </label>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">显示行号：</label>
				<div class="col-sm-8">
					<input id="hh" name="hh" class="form-control" type="text">
				</div>
			</div>
			
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "web/tRoominfo"
		$("#form-tRoominfo-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-tRoominfo-add').serialize());
	        }
	    }
	</script>
</body>
</html>
